/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ExampleBean;
import ExampleBean.ExampleItem;
import java.util.ArrayList;
/**
 *
 * @author Tran Nguyen Anh Tu
 */
public class ExampleItemList {
    ArrayList itemlist; 
    public ExampleItemList(){
        itemlist= new ArrayList();
        addItem("item1",300,20,"author1","cart-icon.jpg");
        addItem("item2",400,0,"author2","cart-icon.jpg");
        addItem("item3",500,0,"author3","cart-icon.jpg");
        addItem("item4",600,50,"author4","cart-icon.jpg");
       // addItem("item5",700,60,"author5","cart-icon.jpg");
       // addItem("item6",900,60,"author6","cart-icon.jpg");
        addItem("item7",900,0,"author7","cart-icon.jpg");
    }
    public void addItem(String name, int price, int count, String Author, String path){
        ExampleItem item = new ExampleItem();
        item.setIauthor(Author);
        item.setIcount(count);
        item.setIimagepath(path);
        item.setIname(name);
        item.setIprice(price);
        itemlist.add(item);
    }

    public ArrayList getItemlist() {
        return itemlist;
    }

}
